<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page pageEncoding="UTF-8" contentType="text/html; UTF-8" isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>超市账单管理系统-订单管理</title>
	<link type="text/css" rel="stylesheet" href="../css/style.css">
</head>
<body>
<div class="main">
	<div class="optitle clearfix">
		<div class="title">订单详情&gt;&gt;</div>
	</div>
	<div class="content">
		<c:if test="${empty requestScope.bills}">
			<div class="empty-tip">暂无订单数据</div>
		</c:if>
		<c:if test="${not empty requestScope.bills}">
			<table class="list">
				<tbody>
				<tr>
					<td width="40" height="23"><div class="STYLE1" align="center">订单编号</div></td>
					<td width="50"><div class="STYLE1" align="center">客户名称</div></td>
					<td width="100"><div class="STYLE1" align="center">商品名称</div></td>
					<td width="50"><div class="STYLE1" align="center">商品单价</div></td>
					<td width="50"><div class="STYLE1" align="center">商品数量</div></td>
					<td width="60"><div class="STYLE1" align="center">商品折扣</div></td>
					<td width="60"><div class="STYLE1" align="center">总价</div></td>
				</tr>
				<c:forEach items="${requestScope.bills}" var="bill">
					<tr>
						<td width="40" height="23"><div>${bill.orderID}</div></td>
						<td width="50"><div>${bill.customerName}</div></td>
						<td width="100"><div>
								${bill.productName}
						</div></td>
						<td width="50"><div>${bill.orderPrice}</div></td>
						<td width="50"><div>${bill.quantity}</div></td>
						<td width="60"><div>${bill.discountRate}</div></td>
						<td width="60"><div>${bill.lineTotal}</div></td>
					</tr>
				</c:forEach>
				</tbody>
			</table>
		</c:if>
	</div>
</div>
</body>
</html>